package project.parser.ast.exps.op.unary;

import project.parser.ast.exps.Exp;
import project.parser.tokenizer.TokenType;

public class Inc extends IncDecr {
	public Inc(Exp id, boolean pre) {
		super(id, pre);
	}

	@Override
	protected int op(int value) {
		return value + 1;
	}

	@Override
	protected String opStr() {
		return TokenType.INC.toString();
	}
}
